that's the way the cookie crumbles

Translations
c'est comme ça
Definitions
This phrase means that sometimes things do not go as planned or expected, and one must accept the outcome, even if it is disappointing.